<script>
	for( var i = 0; i < 3; i++ )
	{
		var str = (i == 2) ? 'is 2' : 'is not 2';
		alert( 'i=' + i + '; It ' + str );
	}
</script>